package com.xyht.sca_s.student_manage_system.modules.news.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 点赞记录表
 * </p>
 *
 * @author XYHT
 * @since 2023-05-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_news_inform_likes")
@ApiModel(value="SmsNewsInformLikes对象", description="点赞记录表")
public class SmsNewsInformLikes implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "点赞信息ID")
    private String id;

    @ApiModelProperty(value = "点赞对象id")
    private String infoId;

    @ApiModelProperty(value = "点赞人ID")
    private String likeUserId;

    @ApiModelProperty(value = "时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "0 取消 1 点赞")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "0:新闻,1:通知")
    private Integer sign;
}
